<script>
	import "animate.css"
	//http://8.138.106.192:3200
	import {
		formatTime,
		player,
		innerAudioContext,
		data
	} from "@/utils/globalData.js"
	import {
		GetMusicPlay
	} from "@/utils/MusicAPI.js"
	export default {
		onLaunch() {
			const songmid = data.value.songmid
			GetMusicPlay(songmid).then(res => {
				data.value.playUrl = res.data.data.playUrl[songmid].url
				innerAudioContext.src = data.value.playUrl
			}).catch(err => {
				console.log("获取歌曲播放链接", err)
			})
		},
		globalData: {
			player: player,
			formatTime: formatTime,
			innerAudioContext: innerAudioContext,
			data: data,
			baseURL: "http://8.138.152.233:3200",
			songlist: []
		}
	}
</script>

<style>
	@import "@/static/download/font_8lw8hkt7sr/iconfont.css";

	.uni-icons {
		color: inherit !important;
		font-size: inherit !important;
	}

	page {
		background-color: #1b1b25;
		color: #dddddd;
	}

	em {
		color: #7d7daa;
		font-style: normal;
	}

	.uni-icons {
		background-color: unset;
	}

	.flex-center {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* 搜索框 */
	.search {
		/* 	position: static;
		top: 100px; */
		margin-top: 20rpx;
		padding: 10rpx 20rpx;
		background-color: #2d2d35;
		color: #7a7a7a;
		border-radius: 20px;
	}

	.control>view:nth-child(2) .uni-slider-thumb {
		transform: scale(0.5);
		background-color: #0e4894 !important;
	}

	.focusSong {
		color: red !important;
	}
</style>